package org.otarriinae.security.base.error;


import org.orarriinae.common.base.exception.ErrorInfo;

/**
 * 系统异常编码
 *
 * @author Wang Chengwei
 * @since 1.0
 */
public enum SecurityErrorCode implements ErrorInfo {
    /**
     * 登录超时
     */
    SESSION_TIMEOUT("SEC_0001", "登录超时，请重新登录"),
    /**
     * 登录类型不对
     */
    LOGINTYPE_IS_ERROR("SEC_0002", "登录类型不对"),
    /**
     * 登录类型不能为空
     */
    LOGINTYPE_IS_NOT_BLANK("SEC_0003", "登录类型不能为空");
    private final String code;
    private final String message;

    SecurityErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
